Page({
  data: {
    userInfo: wx.getStorageInfoSync('userInfo')
  },
  onLoad: function (options) {
    console.log(wx.getStorageInfoSync('userInfo') == true)
    
  },
  bindGetUserInfo() {
    wx.getUserInfo({
      success: function (res) {
        console.info(res)
        // 登录
        wx.login({
          success: res => {
            wx.setStorageSync('userInfo', res)
            //调用自家登录接口
          }
        })
      }
    }) 
  }
})